<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %> 
<%@ page import="data.BitacoraDataMapper" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="arivp89.css" media="screen" />
        <title>Datos del Profesor</title>
    </head>
    <body>
        <%
        BitacoraDataMapper mapper = new BitacoraDataMapper();
        ResultSet rs = mapper.obtenerDatosProfesor(request.getSession().getAttribute("CedProf").toString());
        
        %>
        <h1>Datos de Profesor</h1>
        <% if(rs.next()){ %>
        <table border="1" width="50" cellspacing="3" cellpadding="2">
            <tbody>
                <tr>
                    <td>Nombre</td>
                    <td><% out.println(rs.getString(1)); %></td>
                </tr>
                <tr>
                    <td>Nacionalidad</td>
                    <td><% out.println(rs.getString(2)); %></td>
                </tr>
                <tr>
                    <td>Telefono</td>
                    <td><% out.println(rs.getString(3)); %></td>
                </tr>
                <tr>
                    <td>Direccion</td>
                    <td><% out.println(rs.getString(4)); %></td>
                </tr>
                <tr>
                    <td>Titulo</td>
                    <td><% out.println(rs.getString(5)); %></td>
                </tr>
            </tbody>
        </table>
        <% } %>
        <br><br>
        <html:link page="/ModificarBitacoraIndex.jsp"><- Atrás</html:link>
        <div id="bottom">
            Creado por: Alejandro Rivera, Franklin Alfaro. ECCI, UCR.
            <br>
        </div>
    </body>
</html>
